<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //1
        // let name = '这是一个模板字符串';
        // console.log(name);
        //2.模板字符串可以解析变量
        // let name = '张三';
        // let sayHello = 'Hello,我的名字叫${name}';
        // console.log(sayHello);

        //2.
        let result = {
            name: "zhangsan",
            age: 20
        };

    </script>
</body>

</html>